package com.nut.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.nut.pojo.BaseArea;
import com.nut.service.basearea.AreaServiceI;

/**
*@author Nut
*@version 2018年8月14日 下午7:13:23
*@TODO
*
*/
//@RestController 等同于 @@Controller + @ResponseBody
@RestController
@RequestMapping("/area")
public class AreaController {
	@Resource
	AreaServiceI areaService;
	
	@RequestMapping("/list.do")
	public List<BaseArea> list(){
		return areaService.getArea();
	}
}
